import unittest
import requests
import parameterized


def login(a, b):
    url = 'http://yun.zenm.vip/iot/account/login/'

    data = {
        "username": a,
        "password": b
    }

    header = {
        "Content-Type": 'application/json'
    }

    res1 = requests.post(url=url, json=data, headers=header)

    return res1.json()